/**
 * @author yuliang
 *
 */
package com.xuhai.libms.service.impl;

import java.sql.Date;
import java.util.Collection;
import java.util.List;

import com.xuhai.libms.dao.BorrowedBookDao;
import com.xuhai.libms.entity.BorrowedBook;
import com.xuhai.libms.service.BorrowedBookService;

public class BorrowedBookServiceImpl implements BorrowedBookService{
	
	private BorrowedBookDao borrowedBookDao ;



	public BorrowedBookDao getBorrowedBookDao() {
		return borrowedBookDao;
	}

	public void setBorrowedBookDao(BorrowedBookDao borrowedBookDao) {
		this.borrowedBookDao = borrowedBookDao;
	}

	public void borrowBook(BorrowedBook borrowedBook) {
		borrowedBookDao.borrowBook(borrowedBook);
	}

	public void remove(int id) {
		borrowedBookDao.remove(id);
	}

	public void returnBook(BorrowedBook borrowedBook) {
		borrowedBookDao.returnBook(borrowedBook);
	}

	public Collection showBook(BorrowedBook borrowedBook) {
		return borrowedBookDao.showBook(borrowedBook);
	}

	public Collection showBookByTime(Date borrowedTime) {
		return borrowedBookDao.showBookByTime(borrowedTime);
	}

	public Collection showBorrowed(int marker, Date borrowedTime) {
		return borrowedBookDao.showBorrowed(marker, borrowedTime);
	}

	public Collection showReturn(int marker, Date returnTime) {
		return borrowedBookDao.showReturn(marker, returnTime);
	}
	
	public List<Object> showByPage(int start, int max) {
		return borrowedBookDao.showByPage(start,max);
	}

	public BorrowedBook returnborrowedbook(String bookNo) {
		return borrowedBookDao.returnBookshow(bookNo);
	}
	

}
